<!DOCTYPE HTML>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
<script type="text/javascript" src="../lib/html5.js"></script>
<script type="text/javascript" src="../lib/respond.min.js"></script>
<script type="text/javascript" src="../lib/PIE_IE678.js"></script>
<![endif]-->
    <link href="../css/H-ui.min.css" rel="stylesheet" type="text/css" />
    <link href="../css/H-ui.admin.css" rel="stylesheet" type="text/css" />
    <link href="../lib/Hui-iconfont/1.0.1/iconfont.css" rel="stylesheet" type="text/css" />
    <!--[if IE 6]>
<script type="text/javascript" src="../lib/DD_belatedPNG_0.0.8a-min.js" ></script>
<script>DD_belatedPNG.fix('*');</script>
<![endif]-->
    <title>追雨潮框架</title>
    <style type="text/css">
        .auto-style1 {
            width: 40px;
        }
    </style>
</head>
<body>
    <div class="pd-5">
        <div class="text-c" id="findfdiv">
           由系统自动快速生成-可以修改模板后，再重新生成<br />   点击浏览，可以打开测试页面<br/>
            原型在newhccreate目录，模板在newhccreatexls目录
            <button onclick="findreolad()" class="btn btn-success radius" id="" name=""><i class="Hui-iconfont">&#xe665;</i>刷新</button>
        </div>
        <div class="cl pd-5 bg-1 bk-gray mt-5">
            <span class="l" id="sptoolbar">
              <!--  <a href="javascript:;" onclick="toolDelete()" class="btn btn-danger radius"><i class="Hui-iconfont">&#xe6e2;</i>删除</a>
                <a href="javascript:;" onclick="toolUpdate()" class="btn btn-secondary radius"><i class="Hui-iconfont">&#xe6df;</i>修改</a>-->
                <a href="javascript:;" onclick="hechaorehtml()" class="btn btn-primary radius"><i class="Hui-iconfont">&#xe69f;</i>重新生成</a>
            </span>
            <span class="r">操作提示：<strong>^_^</strong> </span>

        </div>
        <div class="mt-5 ml-20">
            <table class="table table-border table-bordered table-striped table-hover" id="tablelist" width="100%">
                <thead>
                    <tr class="text-c">
                       
<th>名称</th>
<th>浏览</th>

                    </tr>
                </thead>
                <tbody>
                </tbody>
            </table>
        </div>
    </div>
    <script src="../hcjsui/Scripts/jquery-1.9.1.min.js" type="text/javascript"></script>
    <script type="text/javascript" src="../lib/layer/1.9.3/layer.js"></script>
    <script type="text/javascript" src="../lib/My97DatePicker/WdatePicker.js"></script>
    <script type="text/javascript" src="../lib/datatables/1.10.0/jtable.js"></script>
    <script src="../hcjsui/js/_Define.js" type="text/javascript"></script>
    <script type="text/javascript" src="../js/hcui.js"></script>
    <script type="text/javascript" src="../js/hcui_list.js"></script>
    <script type="text/javascript">
        $(function () {
            spsetBaseNoBt("tables", "id", "information_schema.tables as t", "table_name,'1' as fff", "#tablelist", "tables", "用户管理", "tables");
            hcmtable = $(grid1ID).DataTable({
                "serverSide": true,//服务端处理分页 无法使用当前查找
                "bFilter": false,  //是否使用内置的过滤功能
                "ajax": {
                    "type": "POST",
                    "url": spselUrl(" and table_schema='newbaseaccess' and table_type='base table' "),
                    "data": function (d) {
                        $("#findfdiv").find("input[type='text']").each(function () {
                            d[this.id] = $(this).val();
                        });
                    }
                },
                aLengthMenu: [10, 20, 50],
                "columns": [
                     { "data": "table_name" }, { "data": "fff" }

                ]
                ,
                "columnDefs": [
                    //操作列
                    {
                        "targets": [1],
                        "render": function (data, type, row) {
                            return "<a style=\"text-decoration:none\" class=\"ml-5\"  onClick=\"opennew('" + row.table_name + "')\"     href=\"javascript:;\"   title=\"浏览\"><i class=\"Hui-iconfont\">&#xe695;浏览</i></a>";
                        }
                    }
                ]
            });
        });
        function opennew(urlname)
        {
            hcmtable_sno();
            window.open("../newhccreate/" + urlname + ".html");
        }
        function hechaorehtml()
        {
            layer.alert("暂时不由前台处理");
        }
    </script>
</body>
</html>
